import request from '@/utils/request'

// 查询九小场所检查记录列表
export function listRecord(query){
  return request({
    url: '/record/share/list',
    method: 'get',
    params: query
  })
}

// 查询九小场所检查记录详细
export function getRecord(params) {
  return request({
    url: '/record/share/getrecordbyid',
    method: 'get',
    params
  })
}

// 修改九小场所检查记录
export function updateRecord(data) {
  return request({
    url: '/record/share',
    method: 'put',
    data: data
  })
}

// 删除九小场所检查记录
export function delRecord(id) {
  return request({
    url: '/record/share/' + id,
    method: 'delete'
  })
}

// 导出
export function exportShare(params) {
  return request({
    url: '/record/share/export',
    method: 'get',
    params
  })
}


// 删除照片
export function delphoto(params) {
  return request({
    url: '/9xiaorecord/delphoto',
    method: 'get',
    params
  })
}
